package wonder.tools;

import java.util.EventObject;

/**
 * <p>ConfigEvent class.</p>
 *
 * @author u211354
 * @version $Id: $
 */
public class ConfigEvent extends EventObject
{
    private static final long serialVersionUID = -773396120407026034L;
    private Object oldValue, newValue;

	/**
	 * <p>Constructor for ConfigEvent.</p>
	 *
	 * @param source a {@link java.lang.Object} object.
	 * @param oldValue a {@link java.lang.Object} object.
	 * @param newValue a {@link java.lang.Object} object.
	 */
	public ConfigEvent(Object source, Object oldValue, Object newValue) {
		super(source);
		this.oldValue = oldValue;
		this.newValue = newValue;
	}

	/**
	 * <p>Getter for the field <code>oldValue</code>.</p>
	 *
	 * @return a {@link java.lang.Object} object.
	 */
	public Object getOldValue() {
		return oldValue;
	}

	/**
	 * <p>Getter for the field <code>newValue</code>.</p>
	 *
	 * @return a {@link java.lang.Object} object.
	 */
	public Object getNewValue() {
		return newValue;
	}

	/**
	 * <p>getConfig</p>
	 *
	 * @return a {@link wonder.tools.Config} object.
	 */
	public Config getConfig() {
		return (Config)getSource();
	}
}
